package com.autonavi.notify.dao;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import com.autonavi.notify.entity.Notify;


public interface NotifyDao extends JpaRepository<Notify, String> {
	
	@Query("from Notify n where n.requestCode like :requestCode")
	public Page<Notify> findAll(@Param("requestCode") String requestCode,Pageable p);

}
